#ifndef RBOOKMARK_H
#define RBOOKMARK_H

#include <QObject>

class RBookmark : public QObject
{
    Q_OBJECT
    Q_PROPERTY(int bookmarkId READ bookmarkId)
    Q_PROPERTY(int lineNum READ lineNum)
    Q_PROPERTY(int charIndex READ charIndex)
    Q_PROPERTY(qint64 addTime READ addTime)
    Q_PROPERTY(QString note READ note)
public:
    explicit RBookmark(QObject *parent = 0);
    RBookmark(int id, int lineNum, int charIndex,
              qint64 addTime, QString note,
              QObject* parent = 0);

    int bookmarkId();
    void setBookmarkId(int id);

    int lineNum();
    void setLineNum(int lineNum);

    int charIndex();
    void setCharIndex(int index);

    qint64 addTime();
    void setAddTime(qint64 time);

    QString note();
    void setNote(QString note);

signals:

public slots:

private:
    int m_id;
    int m_line_num;
    int m_char_index;
    qint64 m_add_time;
    QString m_note;
};

#endif // RBOOKMARK_H
